package cn.edu.sgu.www.mhxysy.service.wenshi.impl;

import cn.edu.sgu.www.mhxysy.entity.wenshi.WenshiType;
import cn.edu.sgu.www.mhxysy.mapper.wenshi.WenshiTypeMapper;
import cn.edu.sgu.www.mhxysy.service.wenshi.WenshiTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class WenshiTypeServiceImpl implements WenshiTypeService {

    private final WenshiTypeMapper wenshiTypeMapper;

    @Autowired
    public WenshiTypeServiceImpl(WenshiTypeMapper wenshiTypeMapper) {
        this.wenshiTypeMapper = wenshiTypeMapper;
    }

    @Override
    public List<WenshiType> selectAll() {
        return wenshiTypeMapper.selectList(null);
    }

    @Override
    public WenshiType selectById(Integer id) {
        return wenshiTypeMapper.selectById(id);
    }

}